x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
23
23.5
24
24.5
25
25.5
26
26.5
27
27.5
28
28.5
29
29.5
30
];


y1 = [30
37.178875
44.209
51.05575
57.732375
64.233125
70.557875
76.737125
82.767125
88.641375
94.368375
99.979875
105.47225
110.86275
116.16225
121.3845
126.532375
131.647375
136.73575
141.81275
146.904375
152.03175
157.215375
162.472875
167.84625
173.3405
178.971625
184.745
190.667375
196.7935
203.057375
209.519125
216.137125
222.942575
229.9222
237.072325
244.40445
251.89295
259.52945
267.271075
275.0947
283.0727
291.2247
299.505575
307.886825
316.352075
324.910325
333.682325
342.608575
351.601325
360.450825
368.881325
377.012575
385.095575
393.122325
401.121575
409.111325
417.111825
425.112325
433.112825
441.113325
];

y2 = [50
54.471625
59.036375
63.6825
68.431625
73.322375
78.32725
83.414375
88.587375
93.8105
99.088875
104.41675
109.807
115.220125
120.672625
126.16225
131.69675
137.275625
142.910125
148.601
154.366
160.21475
166.15375
172.21625
178.3825
184.70325
191.139
197.723125
204.45525
211.30075
218.2815
225.4025
232.661625
240.0465
247.569125
255.214125
262.974875
270.840125
278.806
286.86325
295.122125
303.50375
312.011375
320.6125
329.29225
338.0025
346.803125
355.346625
362.312125
369.695125
377.301125
385.067375
392.953875
400.915375
408.915875
416.932875
424.932625
432.933125
440.933625
448.934125
456.934625
];

y3 = [40
47.5
54.85375
62.065
69.19
76.18375
83.065
89.8075
96.445
103
109.47625
115.8775
122.22625
128.52625
134.79625
141.05125
147.295
153.54625
159.8125
166.12
172.46125
178.85875
185.3425
191.91625
198.58375
205.34125
212.185
219.17125
226.26625
233.5
240.83875
248.30125
255.91
263.6425
271.5175
279.5275
287.63875
295.86625
304.19125
312.60625
321.1075
329.66875
338.2975
347.0275
355.82125
364.6975
373.65625
382.690975
391.720525
400.73818
409.773835
418.80694
427.824655
436.814285
445.7634
454.659955
463.4924
472.2498
480.921925
489.499355
497.973955
];

x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

x33=linspace(min(x),max(x));
y33=interp1(x,y3,x33,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);
Line3 = line(x33,y33);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)
set(Line3, 'LineStyle', '--','LineWidth', 1,  'Color', [0  143  122]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:30,  'YTick', 0:50:550,...     % 刻度位置、间隔
         'Xlim' ,[0 30],'Ylim' ,[0 550], ...          % 坐标轴范围
         'Xticklabel',{[0:5:30]},...                   % X坐标轴刻度标签
         'Yticklabel',{[0:50:550]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('longitudinal position (m)');
hLegend = legend([Line1,Line2,Line3], ...
                 'FV', 'SV','LV', ...
                 'Location', 'northwest');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])
